package cn.edu.scau.cmi.suwenpeng.chapter06;

class QQ {
	void crySpeak(String s) {
		System.out.println(s);
	}
}

class People6_7 extends QQ {
	void computer(int a, int b) {
		int c = a * b;
		System.out.println(c);
	}

	@Override
	void crySpeak(String s) {
		System.out.println("***" + s + "***");
	}
}

public class Example6_7 {

	public static void main(String[] args) {
		QQ monkey = new People6_7();
		monkey.crySpeak("I love this game");
		People6_7 people = (People6_7) monkey;
		people.computer(10, 10);

	}

}
